/*
 * @title: 动态加载svg文件夹
 * @author: andy.ten@tom.com & xukaixing@hotmail.com
 * @Date: 2022-04-11 13:53:05
 * @LastEditors: andy.ten@tom.com
 * @LastEditTime: 2022-04-11 14:05:25
 * @version: 1.0.1
 * @copyright: copyright (c) 2022 andyten
 *  node: you can not copy and/or use and/or modify this program free,
 *  please reserve the segment above.Please mail me if you have any question.
 */
const req = require.context('../../assets/icons/svg', false, /\.svg$/);
const requireAll = (requireContext) => requireContext.keys();

const re = /\.\/(.*)\.svg/;

const svgIcons = requireAll(req).map((i) => {
  return i.match(re)[1];
});

export default svgIcons;

